
import request from "@/api/index"
let ncOrg = JSON.parse(localStorage.getItem('ncOrg')||"{}")

export default {

    /**
     * @description: 单据类型条件查询 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    queryBillType(params) {
        const url = "/nc/basicInfo/queryBillType"
        return request.post(url, {
            ...params
        })
    },
    /**
     * @description: 成本对象条件查询 *代表必填
     * @param {Object} params *
     * @return {Object}
     */
    queryCmCostobject(params) {
        const url = "/nc/basicInfo/queryCmCostobject"
        return request.post(url, {
            ...params
        })
    },

    /**
     * @description: 客户条件查询 *代表必填
     * @param {String/Number} id *
     * @return {Object}
     */
    queryCustomer(params) {
        const url = "/nc/basicInfo/queryCustomer"
        return request.post(url, {
            ...params
        })
    },

    /**
    * @description: 品级条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryDefdoc(params) {
        const url = "/nc/basicInfo/queryDefdoc"
        return request.post(url, {
            ...params
        })
    },

    /**
   * @description: 活鱼品规条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
    queryDefdoc2(params) {
        const url = "/nc/basicInfo/queryDefdoc2"
        return request.post(url, {
            ...params
        })
    },

    /**
   * @description: 收款协议条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
    queryIncome(params) {
        const url = "/nc/basicInfo/queryIncome"
        return request.post(url, {
            ...params
        })
    },

    /**
 * @description: 物料条件查询 *代表必填
 * @param {Object} params *
 *  @return {Object}
 */
    queryMaterial(params) {
        const url = "/nc/basicInfo/queryMaterial"
        return request.post(url, {
            ...params
        })
    },

    /**
     * @description: 物料辅计量单位条件查询 *代表必填
     * @param {Object} params *
     *  @return {Object}
     */
    queryMaterialconvert(params) {
        const url = "/nc/basicInfo/queryMaterialconvert"
        return request.post(url, {
            ...params
        })
    },

    /**
    * @description: 计量单位条件查询 *代表必填
    * @param {Object} params *
    *  @return {Object}
    */
    queryMeasdoc(params) {
        const url = "/nc/basicInfo/queryMeasdoc"
        return request.post(url, {
            ...params
        })
    },

    /**
    * @description: 部门条件查询 *代表必填
    * @param {Object} params *
    *  @return {Object}
    */
    queryOrgDept(params) {
        const url = "/nc/basicInfo/queryOrgDept"
        return request.post(url, {
            ...params,
            pk_org: ncOrg
        })
    },
    queryFishPondNc() {
        const url = "/nc/report/queryFishPond"
        return request.post(url)
    },

    /**
    * @description: 组织条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryOrgOrgs(params) {
        const url = "/nc/basicInfo/queryOrgOrgs"
        return request.post(url, { ...params })
    },

    /**
    * @description: 人员基本信息条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryPsndoc(params) {
        const url = "/nc/basicInfo/queryPsndoc"
        return request.post(url, {
            ...params
        })
    },
    queryOrgOrgsPage(params) {
        const url = "/nc/basicInfo/queryOrgOrgsPage"
        return request.post(url, {
            ...params
        })
    },
    /**
    * @description: 成本中心条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryResaCostcenter(params) {
        const url = "/nc/basicInfo/queryResaCostcenter"
        return request.post(url, { ...params })
    },

    /**
    * @description: 品级条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    queryStordoc(params) {
        const url = "/nc/basicInfo/queryStordoc"
        return request.post(url, {
            ...params,
        })
    },
    /**
        * @description: 查询清塘鱼塘
        * @param {Object} params *
        * @return {Object}
        */
    queryQtjlFishPond() {
        const url = "/base/ncClearPond/queryQtjlFishPond"
        return request.post(url)
    },
    /**
    * @description: 供应商条件查询 *代表必填
    * @param {Object} params *
    * @return {Object}
    */
    querySupplier(params) {
        const url = "/nc/basicInfo/querySupplier"
        return request.post(url, { ...params })
    },

}